package cn.yhbk.entrance;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test {
    public static void main(String[] args) {
        Pattern compile = Pattern.compile("\\b.*[比|大]赛\\b");
        Matcher matcher = compile.matcher("中国软件设计大赛");
        System.out.println(matcher.find());
        System.out.println(matcher.group());

    }
}
